import { IGoodsDetail, IPhoneDetailList, IPhoneList } from '@/types/phonedetail'
import request from '@/utils/request'
// 以下都是尚品汇的接口

/**
 * @description 获取商品列表
 * @param params
 * @returns
 */
export const reqPhoneDetail = (params: IPhoneDetailList) => {
  return request<IPhoneList>('/api/list', 'post', params)
}

/**
 * @description 获取商品详情
 * @param skuId
 * @returns
 */
export const reqGoodsDetail = (skuId: number) => {
  return request<IGoodsDetail>(`/api/item/${skuId}`, 'GET')
}
